-- GENERATED SPELL FOR [Spearfang Worg] --


function spell0_24677(pUnit, Event) --@Maim Flesh,n/a--
pUnit:FullCastSpellOnTarget(50075,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24677', 10275, 1)
end

function Sorts_24677(pUnit, Event)
local choix_sorts_24677 = math.random(0, 0)
if choix_sorts_24677 == 0 then
pUnit:RegisterEvent('spell0_24677', 1, 1)
end
end

function mob24677_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24677', math.random(1500, 3000), 1)
end

function mob24677_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24677_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24677_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24677, 1, 'mob24677_Action')
RegisterUnitEvent(24677, 2, 'mob24677_Leave')
RegisterUnitEvent(24677, 3, 'mob24677_Kill')
RegisterUnitEvent(24677, 4, 'mob24677_Die')
